<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>修改</title>
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
</head>
<body style="padding: 10px;background: white;min-height: 90%">
<div id="divvuehtml" style="width: 90%;height: 100%;margin: auto;">
    <form class="layui-form" id="update" action="/update">
        <s:hidden name="em.id" value="%{em.id}"/>
        <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th colspan="4" style="text-align: center;">修改</th>
            </tr>
            </thead>
            <tbody style="text-align: center;">
            <tr>
               <s:textfield name="em.shoujianren" value="%{em.shoujianren}"  cssClass="layui-input" label="收件人"/>
            </tr>
            <tr>
                <s:textfield name="em.zhuti" value="%{em.zhuti}"  cssClass="layui-input" label="主题"/>
            </tr>
            <tr>
                <s:textarea name="em.content" value="%{em.content}"  cssClass="layui-textarea" label="内容"/>
            </tr>
            <tr >
                <td colspan="4">
                    <button class="layui-btn layui-btn-normal" lay-filter="formDemo" id="formDemo" onclick="tijiao()">修改</button>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
<script src="/js/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<script type="text/javascript" src="/js/vue.js"></script>
<script th:inline="none">
    layui.use(['table','form','layer','laydate'],function() {
        var form = layui.form;
        var layer = layui.layer;
    });

    function tijiao() {
        xadmin.close();
        parent.reloadInIn2()
    }
</script>
</html>
